<?php
//自用简易文件上传分享(大文件单上传功能)
//开发环境Linux Centos Nginx PHP7.1(应该支持:5.5-7.3)
//不定期更新详情关注:https://gitee.com/weivote/phpbigfileUpload
$biaoti = "UpBigFile";
$dlimi = "1"; //分片大小MB
$zlimi = "200"; //总文件限制MB
$upext = ".zip|.pdf";//上传格式限定;|隔开
$upexe = str_replace("|",",",$upext);//上传格式限定

//以下只为获得功能页面网址用于上传文件网址拼接
$iport = $_SERVER['SERVER_PORT'];
$indes = $_SERVER['SCRIPT_NAME'];
$inder = dirname($_SERVER['PHP_SELF']);
$ihost = $_SERVER['HTTP_HOST'];
if(stristr("-443-","-$iport-")){
$ihosts = "https://$ihost{$inder}";
}elseif(stristr("-80-","-$iport-")){
$ihosts = "http://$ihost{$inder}";
}else{
$ihosts = "http://$ihost:{$iport}{$inder}";
}
//以上只为获得功能页面网址用于上传文件网址拼接
?>